package org.jeecg.modules.power.config.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.jeecg.modules.power.config.entity.YlCheckConfig;
import org.jeecg.modules.power.config.mapper.YlCheckConfigMapper;
import org.jeecg.modules.power.config.service.IYlCheckConfigService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * @Description: 自动审核配置
 * @Author: jeecg-boot
 * @Date:   2024-07-25
 * @Version: V1.0
 */
@Service
public class YlCheckConfigServiceImpl extends ServiceImpl<YlCheckConfigMapper, YlCheckConfig> implements IYlCheckConfigService {

    public int getCheckShop(){
        return this.getYlCheckConfig().getCheckShop();
    }
    public int getCheckUnbind(){
        return this.getYlCheckConfig().getCheckUnbind();
    }
    public int getCheckTransferShop(){
        return this.getYlCheckConfig().getCheckTransferShop();
    }
    public int getCheckDevice(){
        return this.getYlCheckConfig().getCheckDevice();
    }
    public int getCheckRepair(){
        return getYlCheckConfig().getCheckRepair();
    }
    public int getStockReturn(){
        return getYlCheckConfig().getStockReturn();
    }

    public YlCheckConfig getYlCheckConfig(){
        return this.getOne(new QueryWrapper<YlCheckConfig>().last("limit 1"));
    }


}
